home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
program
/
wintech1.zip
/
SHAW.ZIP
/
STDWIN.H
< prev
next >
Wrap
C/C++ Source or Header
|
1991-05-10
|
1KB
|
45 lines
// stdwin.h
#if !defined(STDWIN_H)
#define STDWIN_H
#include<windows.h>
#include"winapp.h"
/* STDWIN
A class derived from Window. This class creates a standard, overlapped Window
with Scroll bars.
*/
class WinAppStdWindow : public Window
{
public:
WinAppStdWindow(char *name) :
Window(name)
{
// StdWindow class settings
AddClassStyle(CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS);
// Window settings: OVERLAPPEDWINDOW includes
// OVERLAPPED, CAPTION, SYSMENU, THICKFRAME,MINIMIZE_BOX,
// and MAXIMIZE_BOX
AddWinStyle(WS_BORDER | WS_OVERLAPPEDWINDOW | WS_VISIBLE);
SetWinX(CW_USEDEFAULT);
SetWinY(CW_USEDEFAULT);
SetWinWidth(CW_USEDEFAULT);
SetWinHeight(CW_USEDEFAULT);
}
static BOOL FAR PASCAL AboutDlg(HWND hDlg, unsigned message,
WORD wParam, LONG lParam);
void EnableScrolls(void)
{
AddWinStyle(WS_HSCROLL | WS_VSCROLL);
}
};
#endif